from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
class TestCrmeb:
    # setup
    def setup_method(self):
        self.driver = webdriver.Chrome()
        self.driver.get("https://www.baidu.com/")
        self.driver.maximize_window()
        self.driver.implicitly_wait(15)
    # teardown
    def teardown_method(self):
        # 退出浏览器
        sleep(5)
        self.driver.quit()
    def test_input(self):
        self.driver.find_element(By.ID,"kw").send_keys("秦忠阳的爱情故事")

    def test_input2(self):
        self.driver.find_element(By.ID,"kw").send_keys("秦钟阳的爱情故事续集")

    def test_input3(self):
        self.driver.find_element(By.ID,"kw").send_keys("王加义的爱情故事")



